var data = {
    "album_id": "",
    "market_type": 0,
    "page": 1,
    "per_page": 10,
    "order": "id",
    "sort": "DESC",
    "product_id": "",
    "timestamp": Date.now()
},
    n = 'api/v2/market/search';
function p(e) {
    for (var t = Object.keys(e).sort(), n = {}, a = 0; a < t.length; a++)
        (e[t[a]] || "0" == e[t[a]]) && (n[t[a]] = e[t[a]]);
    return n
}
function m(e) {
    Object.keys(e);
    var t = "?";
    for (var n in e)
        t += n,
        t += "=",
        t += e[n],
        t += "&";
    return t = t.substr(0, t.length - 1),
    t
}
function get_l() {
    return l = m(p(data)),
           l = "".concat(l, "&key=6rnrdpjjv6wz2sspxqeibesov1itxddc"),
           l = (n + l).toLowerCase()
}
// 原始下单方法↓
handleBuy: function() {
    var t = this;
    this.$http.get("api/market/canbuy", {}, {
        load: !1
    }).then((function(e) {
        1 == e.code ? e.data.check ? t.showTCaptcha() : t.createOrder() : t.$util.msg(e.msg)
    }
    ))
}
createOrder: function() {
    var t = this;
    if (uni.getStorageSync("token")) {
        if (1 != uni.getStorageSync("userinfo").is_authentication)
            return this.$util.msg("请先完成实名认证"),
            void setTimeout((function() {
                t.navTo("/pages/auth/auth")
            }
            ), 1500);
        if (this.clickBtn)
            return;
        this.isFirst = !0,
        this.clickBtn = !0,
        this.isTwo = !1,
        uni.hideLoading(),
        this.confirmOrderH5("")
    } else
        this.navTo("/pages/public/login")
}
confirmOrderH5: function() {
    var t = this;
    if (!this.list.length > 0)
        this.$util.msg("该藏品暂无寄售！");
    else if (uni.getStorageSync("token")) {
        if (1 != uni.getStorageSync("userinfo").is_authentication)
            return this.$util.msg("请先完成实名认证"),
            void setTimeout((function() {
                t.navTo("/pages/auth/auth?v=".concat((new Date).getTime()))
            }
            ), 1500);
        var e = this;
        uni.hideLoading(),
        e.$http.post("api/market/fastBuy", {
            product_id: this.detailData.id
        }).then((function(a) {
            uni.hideLoading(),
            1 == a.code ? (e.setOrderInfo((0,
            n.default)((0,
            n.default)({}, t.detailData), {}, {
                order_id: a.data.order_id
            })),
            e.navTo("/pages/userCenter/orderDetail?order_id=".concat(a.data.order_id, "&v=").concat((new Date).getTime()))) : a.msg.indexOf("未付款") > -1 ? uni.showModal({
                title: "温馨提示",
                content: a.msg,
                showCancel: !0,
                cancelText: "取消",
                confirmText: "查看",
                success: function(t) {
                    e.clickBtn = !1,
                    t.confirm && e.navTo("/pages/userCenter/orders?tabCur=1&v=".concat((new Date).getTime()), {
                        login: !0
                    })
                }
            }) : e.$util.msg(a.msg)
        }
        )).catch((function(t) {
            uni.hideLoading()
        }
        ))
    } else
        this.navTo("/pages/public/login?v=".concat((new Date).getTime()))
}